package com.onlyphoto.onlymall.bean.response

import com.onlyphoto.onlymall.base.BaseEntity

/**
 * Created by gaochujia on 2019-08-26.
 */
data class OrderDetailsBean(
        var order_id: String,
        var order_code: String,
        var delivery_type: Int,
        var date_tm: Long,
        var total_price: Double,
        var pay_price: Double,
        var pay_tm: Int,
        var deliver_tm: Int,
        var take_delivery_tm: Int,
        var state: Int,
        var state_extra: Int,
        var discount_money: Int,
        var pay_freight: Int,
        var date_ymd: String,
        var pay_ymd: String,
        var deliver_ymd: String,
        var take_delivery_ymd: String,
        var express_num: String,
        var express_id: Int,
        var express_company: String,
        var express_company_py: String,
        var buyer_note: String,
        var user_address_info: UserAddressInfo,
        var total_buy_num: Int,
        var goods_info: ArrayList<GoodsInfo>,
        var uploadedList: ArrayList<String>
) :BaseEntity() {
    data class UserAddressInfo(
            var name: String,
            var phone: String,
            var address: String
    ) :BaseEntity()
    data class GoodsInfo(
            var goods_id: Int,
            var type: Int,
            var title: String,
            var buy_num: Int,
            var gift_set: Int,
            var price_now: Double,
            var front_img: String,
            var style: String,
            var size: String,
            var color: String,
            var allow_user_img: Int,             //商品定制，1：定制商品  2、非定制商品
            var user_img_num_limit: Int,         //上传图片数量限制
            var gift_arr: Gift?= null
    ) :BaseEntity() {
        data class Gift(
                var goods_id: Int,
                var gift_goods_id: Int,
                var title: String,
                var front_img: String,
                var style: String,
                var color: String,
                var size: String,
                var buy_num: Int
        )
    }
}